package cn.team.service;


import cn.team.entity.Applay;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApplayService {
    int insertApplay(Applay applay);
    int deleteByTutorAndId(Integer id, String tutor);
    int deleteByParentAndId(Integer id, String parent);
    List<Applay> selectByOid(Integer oid);
    List<Applay> selectByParentAndStartDateAfterNow(String parent);
    List<Applay> selectByTutorAndStartDateAfterNow(String tutor);
    Applay selectByOidAndTutor(Integer id, String tutor);

    int applaySuccess(String grade,int oid,String tutor);
    int applayFail(int oid, String tutor);
    int quXiaoRenwu(int oid);
}